home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Mac OS / Control Strip / MacCalendar ƒ / Src / MacCalendar.r < prev    next >
Encoding:
Text File  |  1994-10-20  |  2.3 KB  |  109 lines  |  [TEXT/KAHL]

  1. /*                                    MacCalendar.r                                    */
  2. /*
  3.  * MacCalendar.r
  4.  * Copyright © 1994 Martin Minow. All rights reserved.
  5.  */
  6. #define REZ
  7. #ifndef  SystemSevenOrLater
  8. #define  SystemSevenOrLater 1
  9. #endif
  10. #include "Pict.r"
  11. #include "Types.r"
  12. #include "SysTypes.r"
  13. #include "BalloonTypes.r"
  14. #include "MacCalendar.h"
  15. #if MPW
  16. include "::MacCalendarIcons.rsrc";
  17. #endif
  18.  
  19. /*
  20.  * Boilerplate
  21.  */
  22. resource 'vers' (1) {
  23.     kVersionMajor, kVersionMinor, kVersionStage, kVersionRelease, verUS,
  24.     kVersionIdent,
  25.     kVersionString
  26. };
  27.  
  28. type kApplicationCreator as 'STR ';
  29.  
  30. resource kApplicationCreator (0) {
  31.     "MacCalendar: " kVersionString
  32. };
  33. resource 'BNDL' (BNDL_Calendar) {
  34.     kApplicationCreator, 0,
  35.     {
  36.         'FREF', {0, FREF_Calendar};
  37.         'ICN#', {0, ICON_Calendar};
  38.     }
  39. };
  40.  
  41. resource 'FREF' (FREF_Calendar) {
  42.     'sdev', 0, ""
  43. };
  44.  
  45. resource 'STR#' (STRN_Info) {
  46.     {
  47.         kCalendarPrefName,                    /* Shared with MacCalendarSetup    */
  48.         "MacCalendar\n\n"
  49.             "This Control Strip module displays the current month’s calendar",
  50.         "Geneva",                            /* Font name                    */
  51.         "9",                                /* Font size                    */
  52.         "1",                                /* 1 == Sunday, 2 == Monday        */
  53.         "\001S\001M\002Tu\001W\002Th\001F\001S\000",    /* Day name string    */
  54.     }
  55. };
  56.  
  57. /*
  58.  * Arrow picture to signal a popup menu (actually, we don't have one). This must
  59.  * be a polygon so the background color shows around the arrow itself.
  60.  * 1.0d7 - adjusted to match the other popup arrows.
  61.  */
  62. resource 'PICT' (PICT_RightArrow) {
  63.     {0, 0, 8, 9}, VersionOne {
  64.         {
  65.             ClipRgn        {{0, 0, 8, 9}, $""};
  66.             FillPoly    {{0, 0, 8, 9}, {{0, 4}, {4, 8}, {8, 4}, {0, 4}}};
  67.         }
  68.     }
  69. };
  70.  
  71. resource 'hfdr' (kHMHelpID) {
  72.     HelpMgrVersion, hmDefaultOptions, 0, 0,
  73.     {
  74.         HMStringItem    {
  75.             "MacCalendar\n\n"
  76.              "This Control Strip module draws this month’s calendar.  To use this"
  77.              " file, place it into the Control Strip folder in the System Folder"
  78.              " and restart the computer."
  79.         };
  80.     }
  81. };
  82.  
  83.  
  84. #ifdef __powerc
  85. /*
  86.  * All Power PC applications need a code-fragment resource that the code fragment
  87.  * manager uses to facilitate dynamic fragment binding. Note that the PowerPC stuff
  88.  * hasn't been tested. Note also that the current version of the Control Strip
  89.  * headers are 68000 specific.
  90.  */
  91. #include "CodeFragmentTypes.r"
  92.     
  93. resource 'cfrg' (0) {
  94.     {
  95.         kPowerPC,
  96.         kFullLib,
  97.         kNoVersionNum,
  98.         kNoVersionNum,
  99.         kDefaultStackSize,
  100.         kNoAppSubFolder,
  101.         kIsApp,
  102.         kOnDiskFlat,
  103.         kZeroOffset,
  104.         kWholeFork,
  105.         "MacCalendar"
  106.     }
  107. };
  108. #endif
  109.